const VipLayout = () => import('../views/vip/VipLayout.vue')
const VipFeatures = () => import('../views/vip/VipFeatures.vue')
const WeeklyPlanIntro = () => import('../views/vip/WeeklyPlanIntro.vue')
const CourseScheduleIntro = () => import('../views/vip/CourseScheduleIntro.vue')
const Habit21Intro = () => import('../views/vip/Habit21Intro.vue')
const MeaningfulThingsIntro = () => import('../views/vip/MeaningfulThingsIntro.vue')
const StudyProgressIntro = () => import('../views/vip/StudyProgressIntro.vue')
const MistakeRecordIntro = () => import('../views/vip/MistakeRecordIntro.vue')
const TimeEfficiencyIntro = () => import('../views/vip/TimeEfficiencyIntro.vue')
const VipCenter = () => import('../views/vip/VipCenter.vue')

export default [
  // 新的会员中心路由
  {
    path: '/sh/true/vip',
    component: VipLayout,
    children: [
      {
        path: '',
        name: 'VipFeatures',
        component: VipFeatures
      },
      {
        path: 'weekly-plan-intro',
        name: 'WeeklyPlanIntro',
        component: WeeklyPlanIntro
      },
      {
        path: 'course-schedule-intro',
        name: 'CourseScheduleIntro',
        component: CourseScheduleIntro
      },
      {
        path: 'habit21-intro',
        name: 'Habit21Intro',
        component: Habit21Intro
      },
      {
        path: 'meaningful-things-intro',
        name: 'MeaningfulThingsIntro',
        component: MeaningfulThingsIntro
      },
      {
        path: 'study-progress-intro',
        name: 'StudyProgressIntro',
        component: StudyProgressIntro
      },
      {
        path: 'mistake-record-intro',
        name: 'MistakeRecordIntro',
        component: MistakeRecordIntro
      },
      {
        path: 'time-efficiency-intro',
        name: 'TimeEfficiencyIntro',
        component: TimeEfficiencyIntro
      }
    ]
  },
  // 保留旧的VIP中心路由（隐藏但可访问）
  {
    path: '/vip',
    name: 'VipCenter',
    component: VipCenter,
    meta: {
      title: 'VIP中心',
      requiresAuth: true
    }
  }
]
